<?php

namespace cf\api\image;

require_once dirname(__FILE__).'/../image.php';

function getThumbnail($path, $width, $height, $useImagemagic=false)
{
	\cf\Image::$USE_IMAGEMAGICK = $useImagemagic;
	$thumb = new \cf\Thumbnail($_SERVER['DOCUMENT_ROOT'].'/'.$path, $width, $height);
	return $thumb->url();
}

?>